class_name 地灵Handler extends BigHandler

func 抹平(data:Dictionary):
	var point_start = gameManager.map_points.get(data.start)
	var point_end = gameManager.map_points.get(data.end)
	var big = point_start.big as Big
	big.moveBefore()
	point_end.big = big
	point_start.big = null
	big.point = point_end
	big.position = point_end.position
	# 玩家是自己或者观战复盘
	if big.player.is_me || ObjectManager.gameManager.me_player == null:
		ObjectManager.soundManager.play(SoundType.地灵_抹平)

func 占据(data:Dictionary):
	var point_start = gameManager.map_points.get(data.start)
	var point_end = gameManager.map_points.get(data.end)
	var big = point_start.big as Big
	big.moveBefore()
	point_end.big = big
	point_start.big = null
	big.point = point_end
	big.position = point_end.position
	# 玩家是自己或者观战复盘
	if big.player.is_me || ObjectManager.gameManager.me_player == null:
		ObjectManager.soundManager.play(SoundType.地灵_占据)
